home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / bit / src / tsdef.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  1KB  |  60 lines

  1. /*
  2.  * $Id: tsdef.h,v 0.91 1994/02/20 00:53:40 zhao Pre-Release $
  3.  *
  4.  *. This file is part of BIT shareware package. After the two weeks of
  5.  *  free evaluation period, you are encouraged (required) to register
  6.  *  your copy for a small registration fee, which is $35 for personal use
  7.  *  and $50 for commercial, government and institutional use.
  8.  *
  9.  *  Copyright(c) 1993, 1994 by T.C. Zhao.
  10.  *  All rights reserved.
  11.  *
  12.  *  Permission to use, copy, and distribute this software in its entirety
  13.  *  for non-commercial purposes is hereby granted, provided that the
  14.  *  above shareware and copyright notices and this permission notice
  15.  *  appear in all copies and their documentation.
  16.  *
  17.  *  This software may be modified for your own use, but modified versions
  18.  *  may not be distributed without prior consent of the author.
  19.  *
  20.  *  This software is provided "as is" without expressed or implied
  21.  *  warranty of any kind.
  22.  *
  23.  *.
  24.  *
  25.  * Structures used by ps.c and text.c
  26.  *
  27.  */
  28. #ifndef TS_DEF_H
  29. #define TS_DEF_H
  30.  
  31. typedef struct
  32.   {
  33.       char *str;        /* current token   */
  34.       float size;        /* requested size  */
  35.       short isize;        /* index           */
  36.       short math;        /* if symbol fonts */
  37.   }
  38. Token;
  39.  
  40. #define MAXTOK 30        /* tokens per line */
  41. typedef struct
  42.   {
  43.       int ntokens;
  44.       Token token[MAXTOK];
  45. #if 0
  46.       const char *fontname;
  47. #endif
  48.   }
  49. Line;
  50.  
  51. /* o left 1 center 2 right */
  52. enum
  53.   {
  54.       TLEFT, TCENTER, TRIGHT
  55.   };
  56.  
  57. extern Line *get_text_line(int);
  58.  
  59. #endif
  60.